package com.kpf.springcloud.service;

import com.kpf.springcloud.vo.PayResultVO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author shiwen
 * @date 2021/3/9
 */
public interface IWxPayService {

    /**
     * 创建native支付的二维码
     *
     * @param totalFee
     * @param body
     * @param request
     * @param response
     * @return
     */
    PayResultVO createNative(String totalFee, String body, HttpServletRequest request, HttpServletResponse response);

    /**
     * 查询订单的支付状态
     *
     * @param outTradeNo
     * @return PAY_SUCCESS or NOT_PAY
     */
    String queryOrder(String outTradeNo);

}